<% title @activity.title %>

<%= simple_format h(@activity.description) unless @activity.description.nil? %>

<%= render :partial => 'comments/list', :locals => {:commentable => @activity} %>

<% form_for [@project, @activity], :html => {:class => "basic-form rounded horizontal"} do |form| %>

	<p>
		<h3>Alterar atividade</h3>
	</p>
	<p>
		<dl>
			<dt>Atividade concluida?</dt>
			<dd><%= form.check_box :completed_at %> Sim</dd>
		</dl>
	</p>
	
	<% fields_for :comment do |comment_form| %>
	<p>
		<%= comment_form.text_area :body, :rows => 10, :cols => 30, :style => 'width: 100%' %>
	</p>
	<% end %>
	
	<button type="submit" class="awesome green silver">
		<span class="icon edit"><%= t :save %></span>
	</button>

<% end %>